Skip to content

simplify apr_interest with validation helper and constants#13115

Closed
ADITYA-KUMAR-2358 wants to merge 2 commits intoTheAlgorithms:masterfrom
ADITYA-KUMAR-2358:master
Closed

simplify apr_interest with validation helper and constants#13115
ADITYA-KUMAR-2358 wants to merge 2 commits intoTheAlgorithms:masterfrom
ADITYA-KUMAR-2358:master

Conversation

@ADITYA-KUMAR-2358
Copy link
Copy Markdown

  • Consolidated validation logic using a small helper function.

-Introduced DAYS_IN_YEAR constant for readability.

-Clearer variable names: daily_rate and total_days.

-Maintains the same functionality and docstring tests.

@algorithms-keeper algorithms-keeper Bot added the tests are failing Do not merge until tests pass label Oct 2, 2025
@algorithms-keeper algorithms-keeper Bot added the awaiting reviews This PR is ready to be reviewed label Oct 2, 2025
@cclauss
Copy link
Copy Markdown
Member

cclauss commented Oct 14, 2025

Closing tests_are_failing PRs to prepare for Hacktoberfest

@cclauss cclauss closed this Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed tests are failing Do not merge until tests pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants